package com.wangsiyu.zookeeper.rmi.server;
import com.wangsiyu.zookeeper.rmi.common.HelloService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class HelloServiceImpl extends UnicastRemoteObject implements HelloService {
    //构造方法
    protected HelloServiceImpl() throws RemoteException {
    }
    @Override
    public String sayHello(String name) throws RemoteException {
        return String.format("Hello %s !", name);
    }
}
